package com.buyantech.smweb.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import javacommon.base.BaseEntity;
/**
 * 积分兑换记录 
 * @author Administrator
 *
 */
@Entity
@Table(name = "users")
public class User extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;

	private String id;
	private String userid;  //用户id
	private String username;//用户昵称
	private String phone;//手机号
	private String phone1;//手机号
	private String eamil;//手机号
	private int integral ;//总积分
	private int dintegral;//平台获取积分
	private int huIntegral;//兑换积分
	private int extensionNumber;//推广人数
	private int state;//状态 1不在线 2在线
	private String Paterid;//上线
    private String paterDate;	
	private String register;//注册日期
	private int  liveness;//用户活跃度
	private String equipment;//设备id
	private String passwrod;//密码
	private String qq;//qq
	private String zfb;//支付宝
	private String cft;//财付通
	private String qq1;//qq
	private String zfb1;//支付宝
	private String cft1;//财付通
	private String IP;
	private String paterRatio;//上线奖励比例
	private int isvip ;//是否vip 0非，1是
	private String version;//版本号
	private String IDFA;//版本号
	private String UDID;//版本号
	private String MAC;//版本号
	private String IMEI;//版本号
	private int  app;//哪个应用  0表示机赚，1表示先生 ，      2.3.4.5？
	
	public static final String FORMAT_REGDATE = DATE_FORMAT;
	
	@Id @GeneratedValue(generator="uuid-id")
	@GenericGenerator(name="uuid-id", strategy = "uuid")
	@Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true, length = 128)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPasswrod() {
		return passwrod;
	}

	public void setPasswrod(String passwrod) {
		this.passwrod = passwrod;
	}

	public int getIntegral() {
		return integral;
	}

	public void setIntegral(int integral) {
		this.integral = integral;
	}
	
	public int getDintegral() {
		return dintegral;
	}

	public void setDintegral(int dintegral) {
		this.dintegral = dintegral;
	}


	public int getHuIntegral() {
		return huIntegral;
	}

	public void setHuIntegral(int huIntegral) {
		this.huIntegral = huIntegral;
	}

	public int getExtensionNumber() {
		return extensionNumber;
	}

	public void setExtensionNumber(int extensionNumber) {
		this.extensionNumber = extensionNumber;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getApp() {
		return app;
	}

	public void setApp(int app) {
		this.app = app;
	}
	
	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getQq1() {
		return qq1;
	}

	public void setQq1(String qq1) {
		this.qq1 = qq1;
	}
	
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPhone1() {
		return phone1;
	}

	public void setPhone1(String phone1) {
		this.phone1 = phone1;
	}

	
	public String getZfb() {
		return zfb;
	}

	public void setZfb(String zfb) {
		this.zfb = zfb;
	}

	public String getCft() {
		return cft;
	}

	public void setCft(String cft) {
		this.cft = cft;
	}

	public String getZfb1() {
		return zfb1;
	}

	public void setZfb1(String zfb1) {
		this.zfb1 = zfb1;
	}

	public String getCft1() {
		return cft1;
	}

	public void setCft1(String cft1) {
		this.cft1 = cft1;
	}
	public String getRegister() {
		return register;
	}

	public void setRegister(String register) {
		this.register = register;
	}

	public String getEquipment() {
		return equipment;
	}

	public void setEquipment(String equipment) {
		this.equipment = equipment;
	}

	public int getLiveness() {
		return liveness;
	}

	public void setLiveness(int liveness) {
		this.liveness = liveness;
	}

	public String getPaterid() {
		return Paterid;
	}

	public void setPaterid(String paterid) {
		Paterid = paterid;
	}

	public String getPaterDate() {
		return paterDate;
	}

	public void setPaterDate(String paterDate) {
		this.paterDate = paterDate;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getEamil() {
		return eamil;
	}

	public void setEamil(String eamil) {
		this.eamil = eamil;
	}
	 
	public String getIP() {
		return IP;
	}

	public void setIP(String IP) {
		this.IP = IP;
	}
	
	public String getPaterRatio() {
		return paterRatio;
	}

	public void setPaterRatio(String paterRatio) {
		this.paterRatio = paterRatio;
	}
	
	public void setIsvip(int isvip) {
		this.isvip = isvip;
	}
	
	public int getIsvip() {
		return isvip;
	}
	
	public void setVersion(String version) {
		this.version = version;
	}
	
	public String getVersion() {
		return version;
	}
	
	public void setIDFA(String IDFA) {
		this.IDFA = IDFA;
	}
	
	public String getIDFA() {
		return IDFA;
	}
	
	public void setUDID(String UDID) {
		this.UDID = UDID;
	}
	
	public String getUDID() {
		return UDID;
	}
	
	public void setMAC(String MAC) {
		this.MAC = MAC;
	}
	
	public String getMAC() {
		return MAC;
	}
	
	public void setIMEI(String IMEI) {
		this.IMEI = IMEI;
	}
	
	public String getIMEI() {
		return IMEI;
	}
}
